package com.coding.dao;


import com.coding.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User userLogin(@Param("account") String account);

    User findUserByLoginFlag(@Param("login_flag") String login_flag);

    List<User> getOrderList();

    //试验
    User getbackpassword(@Param("account") String account);

    User getuser(@Param("account") String account);

    User selectById(@Param("user_id") int user_id);

    //增加用户积分
    int adduserpoint(@Param("user_id") int user_id, @Param("user_points") int user_points);

    int upUserLogin(User user);

    void clearLastLoginTime(@Param("id") int user_id);

    void userRegister(@Param("account") String account, @Param("pwd") String pwd);

    void changeUsername(@Param("username") String username, @Param("account") String account);

    User getUsername(@Param("account") String account);

    int getUserimage(@Param("account") String account);

    //    int updatebyimageid(UserImage userImage);
    int updateimagebyaccount(@Param("account") String account, @Param("user_image_id") int user_image_id);

    List<User> getuserlist();

    User getuserbyuser_id(int user_id);

    int deleteuser(@Param("user_id") int user_id);

    int updateuser(User user);

    int insertuser(User user);

    int changeuser_status(@Param("user_id") int user_id);

    int getuser_status(@Param("user_id") int user_id);

    int getnewuser_id();

}
